﻿@model Tippelde.Services.Dtos.TeamHeaderData
@{
    ViewBag.Title = "Csapat létrehozása";
    String actionName = ViewBag.ActionName;
}

<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title" id="modalTitle">Csapat @(actionName == "Edit" ? "módosítása" : "hozzáadása")</h4>
        </div>

        @using (Html.BeginForm(actionName, "Team", FormMethod.Post, new { @class = "form-horizontal" }))
        {
            @Html.ValidationSummary();
            @Html.AntiForgeryToken();
            <div class="modal-body">
                <fieldset>
                    <div class="form-group">
                        @Html.LabelFor(m => m.Name, new { @class = "col-lg-3 control-label" })
                        <div class="col-lg-9">
                            @Html.TextBoxFor(m => m.Name, new { @class = "form-control" })
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(m => m.ShortName, new { @class = "col-lg-3 control-label" })
                        <div class="col-lg-9">
                            @Html.TextBoxFor(m => m.ShortName, new { @class = "form-control" })
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(m => m.Description, new { @class = "col-lg-3 control-label" })
                        <div class="col-lg-9">
                            @Html.TextAreaFor(m => m.Description, new { @class = "form-control" })
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(m => m.LogoUrl, new { @class = "col-lg-3 control-label" })
                        <div class="col-lg-9">
                            @Html.TextBoxFor(m => m.LogoUrl, new { @class = "form-control input-sm" })
                            <span class="help-block"><img class="col-md-8" src="" alt="" id="image-preview" /></span>
                        </div>
                    </div>

                    <div class="form-group">
                        @Html.LabelFor(m => m.IsNational, new { @class = "col-lg-3 control-label" })
                        <div class="col-lg-9">
                            @Html.CheckBoxFor(m => m.IsNational, new { @class = "form-control input-sm" })
                        </div>
                    </div>
                </fieldset>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Mégse</button>
                <button type="submit" class="btn btn-primary">Mentés</button>
            </div>
        }
    </div>
</div>
<script src="@Url.Content("~/bundles/jqueryval")"></script>
<script src="@Url.Content("~/bundles/tippelde-teameditor")"></script>
